// 入口文件
import Vue from 'vue'


//引入mint-ui
import {Header,Swipe, SwipeItem,Button} from 'mint-ui'
Vue.component(Header.name,Header)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.component(Button.name, Button)

//引入mui组件
import './lib/mui/css/mui.min.css'
// 导入扩展图标样式
import './lib/mui/css/icons-extra.css'


//安装路由
import VueRouter from 'vue-router'
//使用路由模块
Vue.use(VueRouter)
//导入自己的路由模块
import router from './router.js'


//导入vue-resource  ---get请求
import VueResource from 'vue-resource'
//安装vue-resource
Vue.use(VueResource)
//引入APP根组件
import app from './App.vue'
import { from } from '_array-flatten@2.1.2@array-flatten'
var vm=new Vue({
    el:"#app",
    render:c=>c(app),
    router
})